<%@ Page Language="vb" AutoEventWireup="false" Codebehind="Default.aspx.vb" Inherits="WebSite._Default" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
	<HEAD>
		<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
		<meta content="<%= VersionVar %>" name="eVision_Version">
		<meta content="Visual Basic .NET 7.1" name="CODE_LANGUAGE">
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
		<SCRIPT language="JavaScript" src="JSMenu/JSCookMenu.js"></SCRIPT>
		<LINK href="JSMenu/ThemeOffice/theme.css" type="text/css" rel="stylesheet">
		<SCRIPT language="JavaScript" src="JSMenu/ThemeOffice/theme.js"></SCRIPT>
	</HEAD>
	<body bottomMargin="0" leftMargin="0" topMargin="0" scroll="no" rightMargin="0">
		<script language="javascript">
			function window.onload(){
				hideBar()
				
				if (document.all.selectedDiv.value!="") {
					selectMnu(document.all.selectedDiv.value);
					cmDraw('panelMenu', eval(document.all.selectedMenu.value), 'hbr', cmThemeOffice, 'ThemeOffice');
				}
						
				if (document.all.url.value!=""){
					var newUrl = document.all.url.value.replace('!','?');
					newUrl = newUrl.replace('|','&');
					newUrl = newUrl.replace('*','=');
					document.all.Container.src=newUrl;
				}
				
				var queryString = new Array(2);
				queryString=document.location.toString().split('?');			
				
				var parameters = new Array(5);
				
				if (queryString[1]!=null)
					parameters=queryString[1].split('&');
					
				var parametersMatrix = new Array(5,2);	
				
				for (i=0;i<5;i++){
					parametersMatrix[i] = ("","");
				}
				
				var i=0;
				for (i=0;i<5;i++){
					if (parameters[i]!=null && parameters[i]!=""){
						parametersMatrix[i] = parameters[i].split('=');
					}
				}
						
				for (i=0;i<4;i++){
					if (parametersMatrix[i][0]=="divName" && parametersMatrix[i][1]!=null && parametersMatrix[i][1]!=""){
						selectMnu(parametersMatrix[i][1]);
						document.all.selectedDiv.value=parametersMatrix[i][1]; 
						cmDraw('panelMenu', eval(parametersMatrix[i][1]), 'hbr', cmThemeOffice, 'ThemeOffice');					
					}
					else if (parametersMatrix[i][0]=="menuName" && parametersMatrix[i][1]!=null && parametersMatrix[i][1]!=""){
						document.all.selectedMenu.value=parametersMatrix[i][1];
					}
				}						
			}
			
			
			var isHidden=false;
			
			function hideBar(){
				if (!isHidden){
					document.all.panelHtmlMenu.style.display='none';
					document.all.TR1.style.display='none';
					document.all.TR2.style.display='none';
					document.all.TR3.style.display='none';
					isHidden=true;
				}
				else {
					document.all.panelHtmlMenu.style.display='';
					document.all.TR1.style.display='';
					document.all.TR2.style.display='';
					document.all.TR3.style.display='';
					isHidden=false;
				}
			}
			function copyStyle(id){
				if(id){
					if(document.all('IF'+id)){
						var ifr = document.getElementById('IF'+id);
						ifr.style.visibility = document.all(id).style.visibility;
						ifr.style.height = document.all(id).clientHeight + 2;
						ifr.style.width = document.all(id).clientWidth + 3;
					}
				}
			}
		</script>
		<form id="Form1" method="post" runat="server">
			<table id="mainTable" height="100%" cellSpacing="0" cellPadding="0" width="100%" border="0">
				<tr width="100%">
					<td vAlign="top" width="100%">
						<table id="topTable" cellSpacing="0" cellPadding="0" width="100%" border="0">
							<tr width="100%">
								<td>
									<table cellSpacing="0" cellPadding="0" width="100%" border="0">
										<tr id="TR1" height="62">
											<td>
												<table cellSpacing="0" cellPadding="0" width="100%" border="0">
													<tr height="62">
														<td><img src="images/1024/001.jpg" width="63"></td>
														<td width="100%" background="images/1024/002.jpg"></td>
														<td><img src="images/1024/003.jpg" width="345"></td>
													</tr>
												</table>
											</td>
										</tr>
										<tr height="29" width="100%">
											<td bgColor="#1285be"><asp:panel id="panelDiv" Runat="server" ForeColor="White" Font-Names="Arial" Font-Bold="True"
													HorizontalAlign="Center"></asp:panel></td>
										</tr>
										<tr height="46" width="100%">
											<td width="100%" height="46">
												<table height="46" cellSpacing="0" cellPadding="0" width="100%" border="0" bordercolor="orange">
													<tr height="46" width="100%">
														<td background="images/1024/005.jpg"><asp:panel id="panelMenu" Runat="server"></asp:panel></td>
														<td background="images/1024/006.jpg"></td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
								<td width="2" style="BACKGROUND-POSITION-Y: bottom; BACKGROUND-IMAGE: url(images/1024/007.jpg)"></td>
								<td width="169" style="BACKGROUND-POSITION-Y: bottom; BACKGROUND-IMAGE: url(images/1024/008.jpg)"
									valign="bottom">
									<table width="169" border="0" cellpadding="0">
										<tr id="TR2" align="right" valign="top">
											<td>
												<IMG src="images/1024/powered.gif" width="78" height="20">
											</td>
										</tr>
										<tr id="TR3">
											<td height="30" id="TDUser">
												<asp:label id="userLabel" style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; COLOR: white; FONT-FAMILY: Arial"
													Runat="server">
													&nbsp;&nbsp;&nbsp;User</asp:label>
											</td>
										</tr>
										<tr>
											<td height="30" valign="top" align="center">
												<asp:TextBox id="eUser" Font-Size="XX-Small" AutoPostBack="True" Width="112px" Runat="server"
													Height="18"></asp:TextBox>
												&nbsp;<asp:Image Runat="server" id="userImage" ForeColor="Transparent" ImageUrl="images/1024/usuarios2.gif"
													BackColor="Transparent" style="CURSOR:hand" height="18" align="middle" onclick="javascript: defaultPage.value == '' ? window.open('login.aspx?Page=default.aspx&amp;ContainerPage='+document.all.url.value+'&amp;menuName='+document.all.selectedMenu.value+'&amp;divName='+document.all.selectedDiv.value,'_self') : window.open(defaultPage.value, '_self');"></asp:Image>
											</td>
										</tr>
										<tr height="35">
											<td id="TD1" align="center" valign="top">
												<table border="0" cellpadding="0">
													<tr>
														<td valign="top" width="139">
															<asp:DropDownList id="languageList" runat="server" AutoPostBack="True" Font-Size="XX-Small" Width="139"></asp:DropDownList>
														</td>
														<td valign="bottom" align="right" width="15" height="25">
															<img src="images/1024/bluePoint.jpg" style="CURSOR:hand" onclick="javascript:hideBar();" width="5" height="4">
														</td>
													</tr>
												</table>
											</td>
										</tr>
									</table>
								</td>
							</tr>
						</table>
					</td>
				</tr>
				<tr height="100%">
					<td borderColor="#ffffff" id="ContainerTD">
						<iframe id="Container" name="Container" height="100%" width="100%" scrolling="yes" frameBorder="no"
							marginheight="0" marginwidth="0" style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px">
						</iframe>
					</td>
				</tr>
			</table>
			<asp:Panel ID="panelHtmlMenu" Runat="server" style="LEFT: 0px; POSITION: absolute; TOP: 0px; BACKGROUND-COLOR: transparent;"></asp:Panel>
			<asp:textbox id="selectedMenu" style="DISPLAY: none" Runat="server" text=""></asp:textbox>
			<asp:textbox id="selectedDiv" style="DISPLAY: none" Runat="server" text=""></asp:textbox>
			<asp:textbox id="url" style="DISPLAY: none" Runat="server" text=""></asp:textbox>
			<asp:TextBox ID="defaultPage" style="DISPLAY: none" Runat="server" Text=""></asp:TextBox>
		</form>
	</body>
</HTML>
